﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BankRemoteSystem.GUI
{
    public partial class Transaction : Form
    {
        Entities.Account acc;
        DAL.Connection con;
        DataSet dtaBank;
        public Transaction(Entities.Account ac)
        {
            InitializeComponent();
            this.acc = ac;
            con = new DAL.Connection();
            dtaBank = new DataSet();
            BL.TransactionBO tbo = new BL.TransactionBO();
            dtaBank = tbo.getTransaction(this.acc.AccountID);
            dataGridView1.DataSource = dtaBank.Tables["Trans"];
            Controls.Add(dataGridView1);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Transaction_Load(object sender, EventArgs e)
        {

        }

    }
}